<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>基础知识</title>
	<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"" rel="stylesheet">
	<link href="https://cdn.bootcdn.net/ajax/libs/animate.css/3.2.3/animate.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="../../static/css/public.css" />
	<style type="text/css">
		li{
			text-indent: 2em;
			padding: 5px 0;
		}
	</style>
</head>
<body>
	<!-- 回到顶部 -->
	<div class="topBtn">
		<a href="#top">
			<i class="fa fa-long-arrow-up"></i>
		</a>
	</div>
	<!--右边内容-->
	<div id="app" class="main animated fadeInRight">
		<div class="shadow">
			<div class="Table" v-cloak id="top">
				<div class="TableRow" v-for="(el,index) in list">
					<a class="RowLeft" :href="'#'+el.id">{{el.name}}</a>
					<span class="RowRight">{{el.explain}}</span>
				</div>
			</div>
			<div>
				<h4 id="rect">rect</h4>
				<div class="F_Position">
					<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
					  <rect x="50" y="20" width="150" height="120"
					  style="fill:blue;stroke:pink;stroke-width:5;fill-opacity:0.5;
					  stroke-opacity:0.9"/>
					</svg>
				</div>
				<pre>
	&lt;svg xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
	  &lt;rect x="50" y="20" width="150" height="150"
	  style="fill:blue;stroke:pink;stroke-width:5;fill-opacity:0.5;
	  stroke-opacity:0.9"/&gt;
	&lt;/svg&gt;
				</pre>
				<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
				  <rect x="50" y="20" rx="20" ry="20" width="100" height="100"
				  style="fill:red;stroke:black;stroke-width:5;opacity:0.5"/>
				</svg>
				<pre>
	&lt;svg xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
	  &lt;rect x="50" y="20" rx="20" ry="20" width="100" height="100"
	  style="fill:red;stroke:black;stroke-width:5;opacity:0.5"/&gt;
	&lt;/svg&gt;				
				</pre>
			</div>
			<div>
				<h4 id="lineAttr">line属性</h4>
				<ul>
					<li>width：四边形宽度</li>
					<li>height：四边形高度</li>
					<li>x，y: 四边形坐标（即正常情况下左边顶点坐标）</li>
					<li>rx 和 ry 属性可使矩形产生圆角。</li>
				</ul>
			</div>
			<div>
				<h4 id="polygon">&lt;polygon&gt;标签</h4>
				<p>
					&lt;polygon&gt;的points属性指定了每个端点的坐标，
					横坐标与纵坐标之间与逗号分隔，点与点之间用空格分隔。。
				</p>
				<svg width="300" height="180">
				  <polygon fill="green" 
				  stroke="orange" stroke-width="1" 
				  points="0,0 100,0 150,50 100,100 0,100"/>
				</svg>
				<pre>
	&lt;svg width="300" height="180"&gt;
	  &lt;polygon fill="green" 
	  stroke="orange" stroke-width="1" 
	  points="0,0 100,0 150,50  100,100 0,100 0,0"/&gt;
	&lt;/svg&gt;			
		// points最后的 0,0坐标可以不设置
				</pre>
			</div>
		</div>
	</div>
	<!--页面加载进度条-->
	<script src="https://cdn.bootcdn.net/ajax/libs/pace/0.5.0/pace.min.js"></script>
	<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.5.17/vue.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var app = new Vue({
			el: "#app",
			data: function() {
				return {
					list: [
						{ name: "rect",id: "rect",explain: '四边形'},
						{ name: "rect属性",id: "lineAttr",explain: 'rect常用属性'},
						{ name: "<polygon>标签",id: "polygon",explain: ''},
					]
				}
			},
			mounted() {
			}
		})
	</script>
</body>

</html>